﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileGIS.Data
{
    class ShapefileWorkspaceFactory:IShapeFileWorkspaceFactory
    {
        #region IWorkspaceFactory Members

        public bool IsWorkspace()
        {
            return true;
        }

        public IWorkspace OpenFromFile(string fileName)
        {
            ShapefileWorkspace workspace = new ShapefileWorkspace();
            workspace.PathName = fileName;
            workspace.WorkspaceFactory = this;
            return workspace;
        }

        #endregion
    }
}
